package com.dencycheng.redismq.controller;

import com.dencycheng.redismq.service.MqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 生产者
 */
@RestController
@RequestMapping("/send")
public class SendController {

    @Autowired
    MqService mqService;

    @GetMapping
    public String send(String value){
        mqService.send(value);
        return "ok";
    }
}
